"""mypaper URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.urls import path, re_path
from paper.views import index_view, post, exercise_view, statistics_view, post_exercise, recall_view, doc_view, \
    docs_of_course

app_name = 'paper'

urlpatterns = [
    path('p/', post),
    # re_path(r'^ex/(?P<idx>([0-9]+))/$', exercise_view, name='exercise'),
    path('ex/', exercise_view, name='exercise'),  # 练习
    path('ex_post/', post_exercise, name='ex_post'),  # 练习结果
    path('recall/', recall_view, name='recall'),  # 记忆
    path('doc/', doc_view, name='doc'),  # 文档
    path('get_doc/', docs_of_course, name='get_doc'),  # 文档
    path('sta/', statistics_view, name='sta'),
    path('', index_view, name='index'),
]
